<?php
namespace App\Service\Admin;

use App\Service\BaseService as Service;

class BaseService extends Service
{
    //获取UID
    public static function uidByUname($uname)
    {
        $res = self::dbConn(self::$dbWx)->where('nickName', $uname)->first();
        return $res ? $res->id : 0;
    }
}